import http from '../../utils/http';
import * as types from '../mutations-type'

const state = {
    sid: '',
    addressIsReturn: false,
    setAddressInfo: {},
    userInfo: {}
};

const actions = {

    //用户注册
    // [types.USER_REGISTER]({dispatch}, userInfo) {
    //     return new Promise((resolve) => {
    //         http.post('/user.register', userInfo).then((res) => {
    //             return resolve(res.data);
    //         });
    //     });
    // },


};


export default {
    state,
    actions,
    mutations,
    getters: {
        // sid(state) {
        //     if (!state.sid && window.localStorage) state.sid = window.localStorage.getItem("sid");
        //     return state.sid ? state.sid : ''
        // },

    }
}